<%-- 
    Document   : ADM
    Created on : Jul 13, 2013, 1:43:57 PM
    Author     : educacionit
--%>

<%
    HttpSession miSession = request.getSession();
    String usrSession = (String)miSession.getAttribute("usuario");
    
    if (usrSession == null) {
        out.println("No sos es ADM (1)");
    } else if (! usrSession.equals("lucas")) {
        out.println("No sos es ADM (2)");
    }
%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>Es una página de Administación</h1>
        
        <%
            out.println("Variable de session NOMBRE: "+request.getSession().getAttribute("usuario"));
        %>
            
    </body>
</html>
